package com.qy.service.impl;

import com.qy.dao.WithdrawMapper;
import com.qy.model.Member;
import com.qy.model.Withdraw;
import com.qy.service.WithdrawService;
import com.qy.base.core.AbstractService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;


/**
 * Created by zaq on 2018/07/10.
 */
@Service
@Transactional
public class WithdrawServiceImpl extends AbstractService<Withdraw> implements WithdrawService {
    @Resource
    private WithdrawMapper qyWithdrawMapper;

    @Override
    public List<Withdraw> selectWithdrawListByUserId(Member member) {
        return qyWithdrawMapper.selectWithdrawListByUserId(member);
    }

    @Override
    public List<Map> withdrawList(Withdraw withdraw) {
        return qyWithdrawMapper.withdrawList(withdraw);
    }

    @Override
    public List<Map> seeWithdraw(Integer id) {
        return qyWithdrawMapper.seeWithdraw(id);
    }

    @Override
    public void makeMoney(Withdraw withdraw) {
        qyWithdrawMapper.makeMoney(withdraw);
    }
}
